package org.enwey.icarenew.APPUtils;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

import java.io.File;

/**
 * Created by John on 3/16/2015.
 */
public class DialogUtil {
    public static AlertDialog showTakePhotoDialog(final Activity activity, File file, DialogInterface.OnClickListener listener) {
        AlertDialog.Builder builder = new AlertDialog.Builder(activity);
        builder.setTitle("pick");
        builder.setItems(new String[]{"C", "P"}, listener);
        return builder.show();
    }

    public static AlertDialog showTakePhotoDialog(final Activity activity, DialogInterface.OnClickListener listener) {
        return showTakePhotoDialog(activity,null,listener);
    }
}
